@extends('common.layouts.master')

@section('title')
Projects
@stop

@section('help')
Manage your projects
@stop

@section('side')
<div class="ui vertical secondary menu">
	<div class="header item">
		Show
		<i class="unhide icon"></i>
	</div>
	<a class="item">Owned</a>
	<a class="item active">Recent</a>
	<a class="item">Assigned</a>
	
	<div class="header item">
		Filter
		<i class="filter icon"></i>
	</div>
	<a class="item active">Active</a>
	<a class="item">Deleted</a>
	<a class="item">All</a>
	
	<div class="header item">
		Sort
		<i class="sort icon"></i>
	</div>
	<a class="item active">
		Ascending
	</a>
	<a class="item">
		Descending
	</a>
</div>
@stop

@section('actions')
	<a class="ui green button" href="{{ url('projects/create') }}">Create New Project</a>
@stop

@section('content')
	@if(count($model))
	<div class="ui huge fluid vertical menu">
		@foreach($model as $project)
		<div class="item">
			<i class="arrow right icon"></i>
			<div class="content">
				<a class="header" href="{{ action('Netshell\Controllers\Project@show', ['id' => $project->id]) }}">
					{{{ $project->name }}}
				</a>
			</div>
		</div>
		@endforeach
	</div>
	@else
	<p>
		<i>You have no projects</i>
	</p>
	@endif
@stop